<?php

class Admin_Form_User extends Zend_Form
{

    public function init()
    {
        //la methode HTTP d'envoie du formulaire
        $this->setMethod('Post');
        $id = new Zend_Form_Element_Hidden('id');
        
        $this->addElement('text', 'name', array(
        		'label'=>'nom',
        		'required'=>true,
        		'filters'=>array('stringTrim', 'striptags'),
        		'validators'=>array('alnum')
        ));
        
        $this->addElement('submit', 'submit', array(
        		'label'=>'Ajouter',
        		'ignore'=>true
        ));
    }
    
}

